<?php
/**
 * 检查是否有权限，其实是为ACL准备的
 * Enter description here ...
 * @author Administrator
 *
 */
class Zend_View_Helper_Allow extends Zend_View_Helper_Abstract{
	public function allow($action,$controller = null,$module = null){
		$userSession = new Zend_Session_Namespace(Application_Model_Login::LOGIN_SESSION_KEY);
		return ($userSession->id > 0)?TRUE:FALSE;
	}
}